#ifndef _SYS_SEM_H_
#define _SYS_SEM_H_

#include "./include/hdlcopts.h"

#ifdef PLATFORM_C7S
#include "kernel/RTOS.h"
#else 
//#include "os.h"
//typedef CMutex OS_RSEMA;
//#define OS_CREATERSEMA(ps)	MutexInit(ps)
//#define OS_DeleteRSema(ps)	MutexInit(ps)
//#define OS_Use(ps)			MutexLock(ps)
//#define OS_Unuse(ps)		MutexUnlock(ps)


typedef char OS_RSEMA;

#define OS_CREATERSEMA(ps)	
#define OS_DeleteRSema(ps)	
#define OS_Use(ps)			
#define OS_Unuse(ps)		


#endif


#endif/*_SYS_SEM_H_*/
